package com.shopp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author shopp
 * @since 2022-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ShOrder对象", description="")
public class ShOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "下单人id")
    private Integer userId;

    @ApiModelProperty(value = "订单价格")
    private Float price;

    @ApiModelProperty(value = "下单时间")
    private Date creatTime;

    @ApiModelProperty(value = "订单状态 0 为配送 1 已配送")
    private Integer status;

    @TableField(exist = false)
    private ShUser shUser;

    @ApiModelProperty(value = "下单商品id")
    private Integer foId;

    @ApiModelProperty(value = "下单数量")
    private Integer num;

    @TableField(exist = false)
    private ShFood shFood;

}
